Skip to content

Preserve interface name and NetworkAddress on Windows migrations#416

Open
mihaelabalutoiu wants to merge 1 commit intocloudbase:masterfrom
mihaelabalutoiu:preserve-net-adapter-name
Open

Preserve interface name and NetworkAddress on Windows migrations#416
mihaelabalutoiu wants to merge 1 commit intocloudbase:masterfrom
mihaelabalutoiu:preserve-net-adapter-name

Conversation

@mihaelabalutoiu
Copy link
Copy Markdown
Member

When set_dhcp is false, extract DriverDesc and NetworkAddress from the offline registry and use Rename-NetAdapter to restore the source adapter name on the destination.

Comment thread coriolis/osmorphing/windows.py Outdated
Comment thread coriolis/osmorphing/windows.py Outdated
Comment thread coriolis/osmorphing/windows.py Outdated
"$ErrorActionPreference = 'SilentlyContinue'; "
"$classBase = '%(base)s'; "
"$netClassGuid = (Get-ChildItem $classBase "
"-ErrorAction SilentlyContinue | "
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have to pass the error action twice?

Comment thread coriolis/osmorphing/windows.py
…IP migration

When set_dhcp is false, extract DriverDesc and NetworkAddress from the
offline registry and use Rename-NetAdapter to restore the source
adapter name on the destination.
@mihaelabalutoiu mihaelabalutoiu force-pushed the preserve-net-adapter-name branch from 1250435 to fec49f9 Compare April 30, 2026 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants